const fs = require('fs')
fs.readFile(__dirname + '/成绩.txt', 'utf8', (err, data) => {
  if (err) return console.log('读取失败')
  console.log(data)
  const str = data.split(' ').map(item => item.replace('=', ':')).join('\r\n')
  fs.writeFile(__dirname + '/成绩_ok.txt', str, 'utf8', err => {
    if (err) return console.log('失败')
    console.log(str)
    console.log('成功')
  })
})